import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)


const state = {
    cityName:'定位中...'

}
const mutations = {
    ChangeCity(state,config){
        Object.keys(config).map((item,index)=>{
            state[item] = config[item].name
        })
    }

}
const getters = {

}
export default new Vuex.Store({
    state,
    mutations,
    getters
}) 